Package com.cisco.pt.ptmp.impl
Class PipelineImpl
java.lang.Object
com.cisco.pt.ptmp.impl.PipelineImpl
- All Implemented Interfaces:
Pipeline
- Author:
- packettracerexapps@external.cisco.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe collection of filters for a given pipeline are determined by the connection negotiation propertiesread()Retrieves the data from the connection, executes the @seeFilter.in(byte[])method of each filter on the pipeline and finally constructs a @see com.cisco.pt.LTVvoidExecutes the @seeFilter.out(byte[])method of each filter on the pipeline and sends the resulting data to the connection
-
Constructor Details
-
PipelineImpl
- Parameters:
packetTracerConnection- PacketTracerConnection
-
-
Method Details
-
getFilters
Description copied from interface:PipelineThe collection of filters for a given pipeline are determined by the connection negotiation properties- Specified by:
getFiltersin interfacePipeline- Returns:
- List<Filter>a list of filter implementations
- See Also:
-
read
Description copied from interface:PipelineRetrieves the data from the connection, executes the @seeFilter.in(byte[])method of each filter on the pipeline and finally constructs a @see com.cisco.pt.LTV- Specified by:
readin interfacePipeline- Returns:
- a LTV wrapping the data sent from PT
- Throws:
IOException- read ExceptionInterruptedException- read Exception
-
write
Description copied from interface:PipelineExecutes the @seeFilter.out(byte[])method of each filter on the pipeline and sends the resulting data to the connection- Specified by:
writein interfacePipeline- Parameters:
ltv- LTV- Throws:
IOException- Write exception
-